.main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.chatRoom {
  width: 700px;
  height: 500px;
  border: 1px solid #ddd;
  box-shadow: 1px 1px 10px #ddd;
  .file {
    width: 150px;
    height: 75px;
    border: 1px solid #ddd;
    text-align: center;
    & > div:first-child {
      height: 25px;
      line-height: 25px;
      border-bottom: 1px solid #ddd;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    & > div:last-child {
      line-height: 50px;
      cursor: pointer;
    }
  }
  & > div {
    height: 50%;
  }
  & > div:first-child {
    height: 50%;
    border-bottom: 1px solid #ddd;
    .userList {
      padding: 10px 15px;
      overflow: auto;
      height: calc(100% - 30px);

      img {
        width: 150px;
        height: 75px;
        object-fit: scale-down;
      }
      & > div {
        margin: 20px 0;
        & > div {
          margin: 5px 0;
        }
      }
      .user,
      .userRight {
        & > div:first-child {
          font-weight: bold;
        }
      }
      .userRight {
        // text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
      }
    }
    & > div:first-child {
      height: 30px;
      border-bottom: 1px solid #ddd;
      line-height: 30px;
      padding: 0 15px;
      font-weight: bold;
    }
  }
  & > div:last-child {
    position: relative;
    padding: 0 15px;
    .function {
      height: 40px;
      line-height: 40px;
      font-size: 22px;
      display: flex;
      .emoji {
        display: flex;
        flex-wrap: wrap;
        position: absolute;
        top: 35px;
        left: 25px;
        background-color: #fff;
        width: 300px;
        height: 150px;
        overflow-y: auto;
        z-index: 100;
        border: 1px solid #ddd;
        box-shadow: 1px 1px 10px #ddd;
        border-radius: 5px;
        & > div {
          flex: 1;
          cursor: pointer;
        }
      }
      & > div {
        margin: 0 5px;
        cursor: pointer;
      }
    }
    .footer {
      position: absolute;
      bottom: 20px;
      right: 20px;
    }
  }
}
